package animal;

public class D extends B{
    public D(){
        System.out.println("4.D的构造方法");
    }
    {
        System.out.println("5.D的构造块");
    }
    static {
        System.out.println("6.D的静态块");
    }

    public static void main(String[] args) {
        System.out.println("7.主方法开始");
         D a=new D();
         D c=new D();
        System.out.println("8.主方法结束");
    }
}
